package com.hsh.maoduo.controller;

import com.hsh.maoduo.common.Result;
import com.hsh.maoduo.pojo.vo.CountVO;
import com.hsh.maoduo.service.CountService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/count")
public class CountController {

    @Resource
    private CountService countService;

    @GetMapping("/list")
    public List getList(CountVO countVO) {
        return countService.getList(countVO);

    }

    @GetMapping("/export")
    public Result countExport(CountVO countVO) {
        return countService.countExport(countVO);

    }
}
